#ifndef TIME_TEST_H
#define TIME_TEST_H

#include "stm32f10x.h"
#include "stm32f10x_tim.h"
#include "misc.h"
 
#define START_TIME  time_ms=0;RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2 , ENABLE);TIM_Cmd(TIM2, ENABLE)
#define STOP_TIME  TIM_Cmd(TIM2, DISABLE);RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2 , DISABLE)

extern u16 time_ms;
extern u16 time_s;
extern u16 time_m;
extern u16 time_h;

//void TIM2_NVIC_Configuration(void);
void TIM2_Configuration(void);

#endif	/* TIME_TEST_H */